package cn.itcast.service.impl;

import cn.itcast.Mapper.UserMapper;
import cn.itcast.pojo.User;
import cn.itcast.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserById(Long id) {
        User userById = userMapper.selectByPrimaryKey(id);
        return userById;

    }
}
